import req from "@/utils/req";


export async function saveMeta(body) {
  return req('/book/saveMeta', "POST", {}, null, body);
}

export async function saveNote(body) {
  return req('/book/saveNote', "POST", {}, null, body);
}

export async function pageMeta(param) {
  return req(`/book/pageMeta`, "POST", param);
}

export async function pageNote(param) {
  let body = param.bookId ? {bookId: param.bookId} : null;
  return req(`/book/pageNote`, "POST", param, null, body);
}

export async function listNeedReview(param) {

  return req(`/book/listNeedReview`, "POST", param);
}

export async function levelUp(param) {
  return req(`/book/levelUp`, "POST", param);
}

export async function reOpen(param) {
  return req(`/book/reOpen`, "POST", param);
}

export async function deleteNote(param) {
  return req(`/book/deleteNote`, "DELETE", param);
}


export async function deleteMeta(param) {
  return req(`/book/deleteMeta`, "DELETE", param);
}



